package com.os.toytrade.domain.toy;

import com.jc.repository.generator.annotation.NotNull;
import java.io.Serializable;
import java.util.Date;

public class ToySetTheme implements Serializable {

    private String id;

    private String themeNameCh;

    private String themeNameEn;

    private String parentId;

    private Date createdAt;

    private Date updatedAt;

    private String remarks;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getThemeNameCh() {
        return themeNameCh;
    }

    public void setThemeNameCh(String themeNameCh) {
        this.themeNameCh = themeNameCh;
    }

    public String getThemeNameEn() {
        return themeNameEn;
    }

    public void setThemeNameEn(String themeNameEn) {
        this.themeNameEn = themeNameEn;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ToySetTheme other = (ToySetTheme) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getThemeNameCh() == null ? other.getThemeNameCh() == null : this.getThemeNameCh().equals(other.getThemeNameCh()))
            && (this.getThemeNameEn() == null ? other.getThemeNameEn() == null : this.getThemeNameEn().equals(other.getThemeNameEn()))
            && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
            && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getThemeNameCh() == null) ? 0 : getThemeNameCh().hashCode());
        result = prime * result + ((getThemeNameEn() == null) ? 0 : getThemeNameEn().hashCode());
        result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        return result;
    }

    public ToySetTheme id(String value) {
        this.id = value;
        return this;
    }

    public ToySetTheme themeNameCh(String value) {
        this.themeNameCh = value;
        return this;
    }

    public ToySetTheme themeNameEn(String value) {
        this.themeNameEn = value;
        return this;
    }

    public ToySetTheme parentId(String value) {
        this.parentId = value;
        return this;
    }

    public ToySetTheme createdAt(Date value) {
        this.createdAt = value;
        return this;
    }

    public ToySetTheme updatedAt(Date value) {
        this.updatedAt = value;
        return this;
    }

    public ToySetTheme remarks(String value) {
        this.remarks = value;
        return this;
    }
}